package decoder

func getVR(tag []string) string {
	tagStr := tag[0] + "," + tag[1]
	switch tagStr {
	case "0002,0000"://文件元信息长度
		return "UL"
	case "0002,0010"://传输语法
		return "UI"
	case "0002,0013"://文件生成程序的标题
		return "SH"
	case "0008,0005"://文本编码
		return "CS"
	case "0008,0008":
		return "CS"
	case "0008,1032"://成像时间
		return "SQ"
	case "0008,1111":
		return "SQ"
	case "0008,0020"://检查日期
		return "DA"
	case "0008,0060"://成像仪器
		return "CS"
	case "0008,0070"://成像仪厂商
		return "LO"
	case "0008,0080":
		return "LO"
	case "0010,0010"://病人姓名
		return "PN"
	case "0010,0020"://病人id
		return "LO"
	case "0010,0030"://病人生日
		return "DA"
	case "0018,0060"://电压
		return "DS"
	case "0018,1030"://协议名
		return "LO"
	case "0018,1151":
		return "IS"
	case "0020,0010"://检查ID
		return "SH"
	case "0020,0011"://序列
		return "IS"
	case "0020,0012"://成像编号
		return "IS"
	case "0020,0013"://影像编号
		return "IS"
	case "0028,0002"://像素采样1为灰度3为彩色
		return "US"
	case "0028,0004"://图像模式MONOCHROME2为灰度
		return "CS"
	case "0028,0010"://row高
		return "US"
	case "0028,0011"://col宽
		return "US"
	case "0028,0100"://单个采样数据长度
		return "US"
	case "0028,0101"://实际长度
		return "US"
	case "0028,0102"://采样最大值
		return "US"
	case "0028,1050"://窗位
		return "DS"
	case "0028,1051"://窗宽
		return "DS"
	case "0028,1052":
		return "DS"
	case "0028,1053":
		return "DS"
	case "0040,0008"://文件夹标签
		return "SQ"
	case "0040,0260"://文件夹标签
		return "SQ"
	case "0040,0275"://文件夹标签
		return "SQ"
	case "7fe0,0010"://像素数据开始处
		return "OW"
	default:
		return "UN"
	}
}
